#include<iostream>
using namespace std;

int main()
{
    int chinese,math,english;                //输入三门课成绩，判断是否有且仅有一门不及格
    cin >> chinese >> math >> english;
    if(chinese<60 && math>=60 &&english>=60)
    {
        cout <<  "1" << endl;
    }
    else if(chinese>=60 && math<60 && english>=60)
    {
        cout << "1" << endl;
    }
    else if(chinese>=60 && math>=60 && english<60)
    {
        cout << "1" << endl;
    }
    else 
    {
        cout << "0" << endl;
    }
    return 0;
}